// 这个组件目前没有被使用
import type { TabsProps } from 'antd';
import { Tabs } from 'antd';
import React from 'react';

import { Logger } from '@/components/useLogger';

import DevicesInfo from './devicesInfo';
import DeviceStatus from './deviceStatus';

const onChange = (key: string) => {
  Logger(key);
};

const items: TabsProps['items'] = [
  {
    key: '1',
    label: 'Tab 1',
    children: <DeviceStatus />,
  },
  {
    key: '2',
    label: 'Tab 2',
    children: <DevicesInfo />,
  },
];

const DevManage: React.FC = () => (
  <Tabs defaultActiveKey="1" items={items} onChange={onChange} />
);

export default DevManage;
